import request from "@/utils/request";

export function getList(params) {
  return request({
    url: "/setmeal/page",
    method: "get",
    params: params,
  });
}

export function getSetmealById(params) {
  return request({
    url: "/setmeal/getSetmealById",
    method: "get",
    params: params,
  });
}

export function addSetmeal(params) {
  return request({
    url: "/setmeal",
    method: "post",
    data: params,
  });
}

export function editSetmeal(params) {
  return request({
    url: "/setmeal",
    method: "put",
    data: params,
  });
}
export function updateStatusById(params) {
	return request({
		url: '/setmeal/updateStatusById?status=' + params.status,
		method: 'put',
		data: params.idList
	})
}
export function delSetmeal(params) {
	return request({
		url: '/setmeal/delDish',
		method: 'delete',
		data: params
	})
}
